
<form name="form1" method="post">
<table width="600" border="0">
	<tr>
		<td >Cuenta Bancaria:</td>
		<td colspan="2" >
			<?=helpers::combo($conn, "",$objeto->id_cuenta,"","","id_cuenta","id_cuenta","cuenta","id_cuenta","","SELECT A.id AS id_cuenta,B.nombre || ' - ' || A.numero AS cuenta FROM cuentas_bancarias AS A INNER JOIN bancos AS B ON A.id_banco = B.id WHERE id_zona = " . $_SESSION['SesionZona']  . " AND tipo='C' ORDER BY B.nombre, A.numero","","0")?>
			<span class="errormsg" id="error_cuenta">*</span>
			<?=$validator->show("error_cuenta")?>
		</td>
	</tr>

	<tr>
		<td>Cheque Incial:</td>
		<td>
			<input type="text" name="inicio" id="inicio" style="width:100px" value="<?=$objeto->inicio?>">
			<span class="errormsg" id="error_inicio">*</span>
			<?=$validator->show("error_inicio")?>
		</td>
	</tr>
	
	<tr>
		<td>Cheque Final:</td>
		<td>
			<input type="text" name="final" id="final" style="width:100px" value="<?=$objeto->final?>">
			<span class="errormsg" id="error_final">*</span>
			<?=$validator->show("error_final")?>
		</td>
	</tr>

	<tr>
		<td>Cheque Actual:</td>
		<td>
			<input type="text" name="actual" id="actual" style="width:100px" value="<?=$objeto->actual?>">
			<span class="errormsg" id="error_actual">*</span>
			<?=$validator->show("error_actual")?>
		</td>
	</tr>	
	<tr>
		<td>Estatus:</td>
		<td >
			<SELECT NAME="estatus" id="estatus" >
				<OPTION value="A" selected="selected" <?=($objeto->tipo=="A") ? "selected" : "" ?>>Abierta
				<OPTION value="C"<?=($objeto->tipo=="C") ? "selected" : "" ?>>Cerrada
			</SELECT>
		</td>
	</tr>

</table>
<input style="float:right"  name="accion" type="button" value="<?=$boton?>" onclick="<?=$validator->validate() ?>" />
<input name="id" type="hidden" value="<?=$objeto->id?>" />
<input name="accion" type="hidden" value="<?=$boton?>" /> 
<span style="position:absolute;top:4px;right:5px;cursor:pointer;">
<img onclick="close_div();" src="images/close_div.gif" /></span>
</form>
<p class="errormsg">(*) Campo requerido</p
